package com.starview.star.compiler.sources;

import java.util.Map;

import com.starview.platform.data.value.ResourceURI;
import com.starview.platform.resource.catalog.Catalog;
import com.starview.star.code.repository.CodeRepository;
import com.starview.star.compiler.ErrorReport;

public class Pkg
{
  private final ResourceURI uri;
  private final Catalog srcCatalog;
  private final ErrorReport errors;
  private final CodeRepository repository;
  private final Map<String, JavaInfo> javaImports;

  public Pkg(ResourceURI uri, Catalog srcCatalog, Map<String, JavaInfo> javaImports, CodeRepository repository,
      ErrorReport errors)
  {
    this.uri = uri;
    this.srcCatalog = srcCatalog;
    this.repository = repository;
    this.javaImports = javaImports;
    this.errors = errors;
  }

  public ResourceURI getUri()
  {
    return uri;
  }

  public Catalog getSrcCatalog()
  {
    return srcCatalog;
  }

  public CodeRepository getRepository()
  {
    return repository;
  }

  public Map<String, JavaInfo> getJavaImports()
  {
    return javaImports;
  }

  public ErrorReport getErrors()
  {
    return errors;
  }
}
